<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		body {
			height: 3000px;
		}
	</style>
</head>
<body>
	<script>
		document.onmousewheel = fn;
		if (addEventListener) {
			document.addEventListener('DOMMouseScroll',fn,false)
		}
		function fn() {
			console.log(1)
		}
	</script>
</body>
</html>